package com.dwxt.cdms.entity.yumeng;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * 翎盟-血压数据
 *
 * @author Kuang.JiaZhuo
 * @date 2020-09-09 16:27
 */
@Data
@Accessors(chain = true)
@Table(name = "t_bp_data")
public class BpData {
    @Id
    private String id;

    /**
     * 接收的内容原始数据储存id
     */
    @Column(name = "receive_data_id")
    private String receiveDataId;

    /**
     * 血氧
     */
    private Integer oxygen;

    /**
     * 心率变异性
     */
    private Integer hrv;

    /**
     * 舒张压
     */
    private Integer diastolic;

    /**
     * 收缩压
     */
    private Integer systolic;

    /**
     * 采集时间
     */
    private String time;

    /**
     * 用户标识
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 设备Mac地址
     */
    @Column(name = "device_identity")
    private String deviceIdentity;

    /**
     * 客户id
     */
    @Column(name = "customer_id")
    private Integer customerId;

    /**
     * 创建时间(录入数据库的时间)
     */
    @Column(name = "create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;

    /**
     * 逻辑删除标识(0否1是)
     */
    @Column(name = "is_delete")
    private String isDelete;

    /**
     * 备用字段1
     */
    @Column(name = "spare_field_1")
    private String spareField1;

    /**
     * 备用字段2
     */
    @Column(name = "spare_field_2")
    private String spareField2;

    /**
     * 备用字段3
     */
    @Column(name = "spare_field_3")
    private String spareField3;

}